package metier;

import java.util.Date;

public class NoteEleve implements Comparable<NoteEleve>{
	// ATTRIBUTS
	private Integer idEleve;
	private Integer idMatiere;
	private java.util.Date dateNote;
	private Float note;

	// CONSTRUCTEURS
	public NoteEleve(Integer idEleve, Integer idMatiere, Date dateNote,
			Float note) {
		this.idEleve = idEleve;
		this.idMatiere = idMatiere;
		this.dateNote = dateNote;
		this.note = note;
	}

	// GETTERS et SETTERS
	public Integer getIdEleve() {
		return idEleve;
	}

	public void setIdEleve(Integer idEleve) {
		this.idEleve = idEleve;
	}

	public Integer getIdMatiere() {
		return idMatiere;
	}

	public void setIdMatiere(Integer idMatiere) {
		this.idMatiere = idMatiere;
	}

	public java.util.Date getDateNote() {
		return dateNote;
	}

	public void setDateNote(java.util.Date dateNote) {
		this.dateNote = dateNote;
	}

	public Float getNote() {
		return note;
	}

	public void setNote(Float note) {
		this.note = note;
	}

	// METHODES

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "" + this.getIdMatiere() + " : " + this.getDateNote() + " : "
				+ this.getNote();
	}

	@Override
	public int compareTo(NoteEleve o) {
		return this.idMatiere.compareTo(o.getIdMatiere());
	}

}
